//
//  MusicDetailViewController.h
//  WYH_MusicPlayer
//
//  Created by wyh on 16/3/30.
//  Copyright © 2016年 吴岳恒. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@class musicModel;

@interface MusicDetailViewController : UIViewController
@property (weak, nonatomic) IBOutlet UITableView *lrcTabelView;
///滑块属性
@property (weak, nonatomic) IBOutlet UISlider *slider;
//滑块方法
- (IBAction)sliderAction:(UISlider *)sender;
///歌曲进度条
@property (weak, nonatomic) IBOutlet UISlider *progressSlider;
- (IBAction)progressSliderAction:(UISlider *)sender;
///光盘图片
@property (weak, nonatomic) IBOutlet UIImageView *picImage;

///图片
@property (weak, nonatomic) IBOutlet UIImageView *image;
///当前时间label
@property (weak, nonatomic) IBOutlet UILabel *currentTimeLabel;
///总时间Label
@property (weak, nonatomic) IBOutlet UILabel *totalTimeLabel;
///存储歌词的数组
@property (nonatomic, strong) NSMutableArray *lrcAll;
///存储时间的数组
@property (nonatomic, strong) NSMutableArray *lrcTime;

//暂停按钮
@property (weak, nonatomic) IBOutlet UIButton *pause;
///block传值
@property (nonatomic, strong) void(^block)(NSInteger index);
///计行数器
@property (nonatomic, assign) NSInteger index;
///播放还是暂停
@property (nonatomic, assign) BOOL playOrPause;
///存放音乐的数组
@property (nonatomic, strong) NSMutableArray *musicArray;
///数据模型
@property (nonatomic, strong) musicModel *model;

//播放音乐
-(void)musicPlayWith:(NSString *)str;
//创建歌词
-(void)createLrcWith:(NSString *)str;


//上一曲
- (IBAction)previousSongAction:(id)sender;
//暂停歌曲
- (IBAction)pauseSongAction:(id)sender;
//下一曲
- (IBAction)nextSongAction:(id)sender;


@end